package com.nineyang.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * ClassName:IndexController
 * Description:
 * author: jiuyang
 * DateTime: 2025/1/13 上午11:17
 */
@RestController
public class IndexController {

    @Autowired
    Date date;

    @GetMapping("/hello")
    public String hello(){
        return date.toString();
    }
}
